package com.xsq.dubbo.comsumer.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.xsq.dubbo.api.DubboService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;

/**
 * @ClassName DubboTestController
 * @Description TODO
 * @Author xsq
 * @Date 2020/6/23 14:15
 **/
@RestController
public class DubboTestController {

    @Reference
    private DubboService dubboService;

    @RequestMapping("/test")
    public String test() {
        return dubboService.test();
    }

}
